/*
 * @Descripttion: 表格配置
 * @version:
 * @Author: spring
 * @Date: 2022-04-18 09:13:24
 * @LastEditors: spring
 * @LastEditTime: 2022-04-18 17:51:09
 */
import ArchivesPopover from "../popover";
import { educationList } from "../../../../common/local-data";
// 列配置项
export const column = [
  {
    title: "+",
    key: "+",
    width: 32,
    render: (tags: any) => <ArchivesPopover tags={tags}></ArchivesPopover>,
  },
  {
    title: "编号",
    dataIndex: "number",
    key: "number",
  },
  {
    title: "姓名",
    dataIndex: "name",
    key: "name",
  },
  {
    title: "身份证号码",
    dataIndex: "idCard",
    key: "idCard",
  },
  {
    title: "出生日期",
    dataIndex: "birthday",
    key: "birthday",
  },
  {
    title: "联系电话",
    dataIndex: "phone",
    key: "phone",
  },
  {
    title: "学历",
    key: "education",
    render: (tags: any) =>
      educationList.find((item) => tags.education === item.number)?.value,
  },
  {
    title: "婚姻状况",
    key: "marriage",
    render: (tags: any) => (tags.marriage === 1 ? "已婚" : "未婚"),
  },
  {
    title: "地址",
    dataIndex: "address",
    key: "address",
  },
  {
    title: "所属部门",
    dataIndex: "department",
    key: "department",
  },
  {
    title: "职位",
    dataIndex: "position",
    key: "position",
  }
];
